<section>
	<div class="page-header">
		<h2><?php echo $title; ?></h2>
	</div>
	
	<?php if ($roles) : ?>
	<table class="zebra-striped">
		<thead>
			<tr>
				<th>Name</th>
				<th>Total Users</th>
				<th width="70">Actions</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($roles as $role) : ?>
				<tr>
					<td><?php echo $role['role_name']; ?></td>
					<td><?php echo $role['user_count']; ?></td>
					<td><?php echo anchor('users/edit_role/' . $role['role_id'], 'Edit'); ?></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<?php else : ?>
	<p>No records found.</p>
	<?php endif; ?>
</section>